# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=smtptx
pkgver=1.0
pkgrel=6
groups=('blackarch' 'blackarch-scanner' 'blackarch-fuzzer')
pkgdesc='A very simple tool used for sending simple email and do some basic email testing from a pentester perspective.'
arch=('any')
url='http://www.0x90.se/'
license=('GPL3')
depends=('python2' 'python2-dnspython')
source=("https://dl.packetstormsecurity.net/UNIX/utilities/${pkgname}.v${pkgver}.tar.gz")
sha512sums=('0662c88169a4c6394e4c799f99669b24978d0007c52c9bb4c6c708c48b80eb5e39ac1cac0c8851cd3f55582cc7bec07bd6c6ec962e16882d412f958056edc653')

prepare() {
  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' "$pkgname.py"
}

package() {
  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

